package com.xzy.service;

import com.xzy.custom.Page;
import com.xzy.entities.BookInformation;
import com.xzy.web.form.BookInformationForm;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * TODO70
 *
 * @author Administrator
 * ClassName: BookInfromationService
 * date: 2021/12/3 14:51
 */
public interface BookInformationService {
    List<BookInformation> findAllBookInformation(Page page,String name);

    Integer findBookInformationCount(Page page,String name);

    void deleteById(int parseInt);

    BookInformation findById(Integer id);

    Boolean saveFile(MultipartFile file, String uuid, Integer id);

    void download(String uuid, HttpServletRequest request, HttpServletResponse response);

    void updataById(BookInformationForm form);

    void insertInformation(BookInformationForm form);

    BookInformation findByUuid(String uuid);

    List<BookInformation> findAllBookInformation1();

    List<BookInformation> findByBookName(String bookName);

    List<BookInformation> findBookInformationList();

    BookInformation xwfindById(Integer id);

    List<BookInformation> findByBookId(List<Integer> bookId, Integer userId);

    List<BookInformation> findByBookIdAndBookName(List<Integer> bookId, String bookName, Integer userId);

    BookInformation xwfindBorrowById(Integer borrowId);

    List<BookInformation> findAllBook();
}
